Skip to content

[ZEPPELIN-1391][Interpreters] print error while existing registedInterpreter with the same key but different settings#1382

Closed
WeichenXu123 wants to merge 1 commit intoapache:masterfrom
WeichenXu123:interpreter_key_error_check
Closed

[ZEPPELIN-1391][Interpreters] print error while existing registedInterpreter with the same key but different settings#1382
WeichenXu123 wants to merge 1 commit intoapache:masterfrom
WeichenXu123:interpreter_key_error_check

Conversation

@WeichenXu123
Copy link
Contributor

What is this PR for?

print error while existing registedInterpreter with the same key but different settings.
In order to compare the property Map in the Interpreter easily,
I override the equals method in InterpreterProperty class. (and hashCode at the same time)

and I fix a small error in InterpreterProperty.toString(), its result forgot } in the end.

What type of PR is it?

Improvement

Todos

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-1391

How should this be tested?

Existing tests.

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@WeichenXu123 WeichenXu123 force-pushed the interpreter_key_error_check branch from ccfe8e0 to 4ef032e Compare August 29, 2016 15:33
@WeichenXu123
Copy link
Contributor Author

cc @jongyoul thanks!

@jongyoul
Copy link
Member

LGTM. Merging if there's no more discussion.

@asfgit asfgit closed this in 323aa18 Sep 1, 2016
asfgit pushed a commit that referenced this pull request Sep 10, 2016
…methods, add null check

### What is this PR for?
in PR #1382,
there is a small bug that `InterpreterProperty.equals` do not check `null`.
jdk lib request the `null` check otherwise it has the risk causing java collections operation throw exception.
so I fix it.

### What type of PR is it?
Bug Fix

### Todos
N/A

### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1422

### How should this be tested?
existing test.

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: WeichenXu <WeichenXu123@outlook.com>

Closes #1421 from WeichenXu123/fix_InterpreterProperty.equals and squashes the following commits:

eb8d4ee [WeichenXu] fix_InterpreterProperty.equals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants